package com.example.javaserve.enums;

public enum RoleEnum {
    STAFF(0,"staff","教职工"),
    STUDENT(1,"student","学生"),
    DOCTOR(2,"doctor","医生"),
    ADMIN(3,"admin","管理员");
    
    private Integer code;
    private String value;
    private String description;
    
    RoleEnum(Integer code, String value,String description) {
        this.code = code;
        this.value = value;
        this.description = description;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
